package com.hospital.xiaochengxiu.yang.service.impl;

import com.hospital.xiaochengxiu.yang.dao.DoctorArrangeDao;
import com.hospital.xiaochengxiu.yang.entity.DoctorFalls;
import com.hospital.xiaochengxiu.yang.service.DoctorArrangeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 排班业务类
 */
@Service
public class DoctorArrangeServiceImpl implements DoctorArrangeService {
    @Autowired
    private DoctorArrangeDao doctorArrange;

    /**
     * 查询莫一天对应科室的值班人员
     * @param dept 科室
     * @param date  日期
     * @return  返回上班人员的信息
     */
    public List<DoctorFalls> arrange(String dept, String date) {
        return doctorArrange.arrange(dept,date);
    }
}
